var express = require('express');
var router = express.Router();

const { register, login, getUserNameById } = require('../dataBase/user.js');

/* GET users listing. */

router.get('/', function (req, res, next) {
    res.send("result");
});

router.post('/register', register);

router.post('/login', login);

router.get('/getUserNameById/:id', getUserNameById);

module.exports = router;
